<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="../common/tag.jsp" %>
<c:set var="_underAppInfoList" value="active" scope="request"/>
<c:set var="_pageTitle" value="日志信息" scope="request"/>
<!DOCTYPE html>
<html>
<head>
    <title>${_pageTitle}</title>
    <%@include file="../common/head.jsp" %>
</head>
<body>
<%@include file="../common/topbar.jsp" %>
<div class="ch-container">
    <div class="row">
        <%@include file="../common/left.jsp" %>
        <!-- main content -->
        <div class="page-header"><h3>日志信息</h3></div>
        <form id="search_form" action="${basePath}/AppVersion/getUpdateInfoList" method="post" class="form-inline">
            <select name="type" class="form-control selectWidth">
                <option value="2" <c:if test="${type ==2}">selected</c:if>>Android</option>
                <option value="1" <c:if test="${type ==1}">selected</c:if>>IOS</option>
            </select>
            <input type="submit" class="btn btn-primary" value="查询"/>
        </form>
        <br>
        <div id="list">
            <table class="table table-striped table-bordered bootstrap-datatable datatable responsive">
                <tr>
                    <th>选择</th>
                    <th>版本号</th>
                    <th>build编号</th>
                    <th>更新日志</th>
                    <th>语言</th>
                    <th>终端类型</th>
                    <th>发布类型</th>
                    <th>发布日期</th>
                    <th>强制更新</th>
                    <th>文件大小</th>
                    <th>操作</th>
                </tr>
                <c:forEach items="${list }" var="item">
                    <tr>
                        <td><input type="checkbox" name="items_id" value="${item.id}"/></td>
                        <td>${item.version }</td>
                        <td>${item.build }</td>
                        <td>${item.updataLog }</td>
                        <td>${item.languageId }</td>
                        <td>${item.type }</td>
                        <td>${item.status }</td>
                        <td>${item.editionTime }</td>
                        <td>${item.forcibility }</td>
                        <td>${item.contentLength }</td>
                        <td><a
                                href="${pageContext.request.contextPath }/AppVersion/deleteUpdateInfo?id=${item.id}&&type=${item.type}">删除</a>
                        </td>
                    </tr>
                </c:forEach>
            </table>
        </div>
        <!-- end main content -->
        <!-- content ends -->

        <c:import url="../common/footer.jsp"/>
        <script type="text/javascript">
            $(document).ready(function () {
                $("#query").click(function () {
                    $(this).attr("disabled", "true");
                    $("#form1").submit();
                });
                $("#delete").click(function () {

                });
            });
        </script>